﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace DispatchAssist.BusinessLogical.Model
{
    /// <summary>
    /// AlertActionDefine
    /// </summary>
    public class AlertActionDefine
    {

        /// <summary>
        /// AlertActionDefine 构造函数
        /// </summary>
        public AlertActionDefine()
        { }


        /// <summary>
        /// AlertActionDefine OR映射构造函数
        /// </summary>
        public AlertActionDefine(System.Data.IDataReader dr)
        {
            this.AlertActionFlag = Convert.ToInt32(dr["AlertActionFlag"]);
            this.AlertActionName = Convert.ToString(dr["AlertActionName"]);
        }


        /// <summary>
        /// 预警行为标识
        /// </summary>
        public int AlertActionFlag { get; set; }

        /// <summary>
        /// 告警行为名称
        /// </summary>
        public string AlertActionName { get; set; }

        public override string ToString()
        {
            return string.Format("[告警行为名称：{0}]", AlertActionName);
        }

    }
}
